package com.cyh.testdesignpattern.factory.simplefactory;

import android.util.Log;

public abstract class Pizza {
    protected String name;
    //准备原材料
    public abstract void prepare();
    public void bake() {
        Log.i("Pizza", "----bake---name=" + name);
    }
    public void cut() {
        Log.i("Pizza", "----cug---name=" + name);
    }
    public void box() {
        Log.i("Pizza", "----box---name=" + name);
    }
    public String getName() {
        Log.i("Pizza", "----getName---name=" + name);
        return name;
    }
    public void setName(String name){
        this.name = name;
        Log.i("Pizza", "----setName---name=" + name);
    }
}
